package com.tmxk.spring;

import com.tmxk.spring.service.SysRoleService;
import com.tmxk.spring.service.impl.SysRoleServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
      //  SysRoleService service = new SysRoleServiceImpl();
      //  System.out.println(service.isSave(new SysRole()));

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        SysRoleService service =  (SysRoleService) applicationContext.getBean("sysRoleService");
        System.out.println(service.isSave(new SysRole()));
    }
}
